<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: Non-Photorealistic Rendering</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="header">
  <div class="summary">
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Non-Photorealistic Rendering<div class="ingroups"><a class="el" href="../../d1/d0d/group__photo.html">Computational Photography</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga3f9a572bf02ebe19f6652ce7cadadc7c"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom">{ <br/>
  <a class="el" href="../../df/dac/group__photo__render.html#gga3f9a572bf02ebe19f6652ce7cadadc7ca54c35da37a520d619d8a149d9b463d73">cv::RECURS_FILTER</a> = 1, 
<br/>
  <a class="el" href="../../df/dac/group__photo__render.html#gga3f9a572bf02ebe19f6652ce7cadadc7caaab1c1e6dc436a25e1f5506fb6432d4e">cv::NORMCONV_FILTER</a> = 2
<br/>
 }<tr class="memdesc:ga3f9a572bf02ebe19f6652ce7cadadc7c"><td class="mdescLeft"> </td><td class="mdescRight">Edge preserving filters.  <a href="../../df/dac/group__photo__render.html#ga3f9a572bf02ebe19f6652ce7cadadc7c">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:ga3f9a572bf02ebe19f6652ce7cadadc7c"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga0de660cb6f371a464a74c7b651415975"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dac/group__photo__render.html#ga0de660cb6f371a464a74c7b651415975">cv::detailEnhance</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, float sigma_s=10, float sigma_r=0.15f)</td></tr>
<tr class="memdesc:ga0de660cb6f371a464a74c7b651415975"><td class="mdescLeft"> </td><td class="mdescRight">This filter enhances the details of a particular image.  <a href="../../df/dac/group__photo__render.html#ga0de660cb6f371a464a74c7b651415975">More...</a><br/></td></tr>
<tr class="separator:ga0de660cb6f371a464a74c7b651415975"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gafaee2977597029bc8e35da6e67bd31f7"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dac/group__photo__render.html#gafaee2977597029bc8e35da6e67bd31f7">cv::edgePreservingFilter</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int flags=1, float sigma_s=60, float sigma_r=0.4f)</td></tr>
<tr class="memdesc:gafaee2977597029bc8e35da6e67bd31f7"><td class="mdescLeft"> </td><td class="mdescRight">Filtering is the fundamental operation in image and video processing. Edge-preserving smoothing filters are used in many different applications <a class="el" href="../../d0/de3/citelist.html#CITEREF_EM11">[86]</a> .  <a href="../../df/dac/group__photo__render.html#gafaee2977597029bc8e35da6e67bd31f7">More...</a><br/></td></tr>
<tr class="separator:gafaee2977597029bc8e35da6e67bd31f7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae5930dd822c713b36f8529b21ddebd0c"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dac/group__photo__render.html#gae5930dd822c713b36f8529b21ddebd0c">cv::pencilSketch</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst1, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst2, float sigma_s=60, float sigma_r=0.07f, float shade_factor=0.02f)</td></tr>
<tr class="memdesc:gae5930dd822c713b36f8529b21ddebd0c"><td class="mdescLeft"> </td><td class="mdescRight">Pencil-like non-photorealistic line drawing.  <a href="../../df/dac/group__photo__render.html#gae5930dd822c713b36f8529b21ddebd0c">More...</a><br/></td></tr>
<tr class="separator:gae5930dd822c713b36f8529b21ddebd0c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gacb0f7324017df153d7b5d095aed53206"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dac/group__photo__render.html#gacb0f7324017df153d7b5d095aed53206">cv::stylization</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, float sigma_s=60, float sigma_r=0.45f)</td></tr>
<tr class="memdesc:gacb0f7324017df153d7b5d095aed53206"><td class="mdescLeft"> </td><td class="mdescRight">Stylization aims to produce digital imagery with a wide variety of effects not focused on photorealism. Edge-aware filters are ideal for stylization, as they can abstract regions of low contrast while preserving, or enhancing, high-contrast features.  <a href="../../df/dac/group__photo__render.html#gacb0f7324017df153d7b5d095aed53206">More...</a><br/></td></tr>
<tr class="separator:gacb0f7324017df153d7b5d095aed53206"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Useful links:</p>
<p><a href="http://www.inf.ufrgs.br/~eslgastal/DomainTransform">http://www.inf.ufrgs.br/~eslgastal/DomainTransform</a></p>
<p><a href="https://www.learnopencv.com/non-photorealistic-rendering-using-opencv-python-c/">https://www.learnopencv.com/non-photorealistic-rendering-using-opencv-python-c/</a> </p>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga3f9a572bf02ebe19f6652ce7cadadc7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3f9a572bf02ebe19f6652ce7cadadc7c">◆ </a></span>anonymous enum</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">anonymous enum</td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../dc/d81/photo_8hpp.html">opencv2/photo.hpp</a>&gt;</code></p>
<p>Edge preserving filters. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga3f9a572bf02ebe19f6652ce7cadadc7ca54c35da37a520d619d8a149d9b463d73"></a>RECURS_FILTER <div class="python_language">Python: cv.RECURS_FILTER</div></td><td class="fielddoc"><p>Recursive Filtering. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga3f9a572bf02ebe19f6652ce7cadadc7caaab1c1e6dc436a25e1f5506fb6432d4e"></a>NORMCONV_FILTER <div class="python_language">Python: cv.NORMCONV_FILTER</div></td><td class="fielddoc"><p>Normalized Convolution Filtering. </p>
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga0de660cb6f371a464a74c7b651415975"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0de660cb6f371a464a74c7b651415975">◆ </a></span>detailEnhance()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::detailEnhance </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>sigma_s</em> = <code>10</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>sigma_r</em> = <code>0.15f</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.detailEnhance(</td><td class="paramname">src[, dst[, sigma_s[, sigma_r]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../dc/d81/photo_8hpp.html">opencv2/photo.hpp</a>&gt;</code></p>
<p>This filter enhances the details of a particular image. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Input 8-bit 3-channel image. </td></tr>
    <tr><td class="paramname">dst</td><td>Output image with the same size and type as src. </td></tr>
    <tr><td class="paramname">sigma_s</td><td>Range between 0 to 200. </td></tr>
    <tr><td class="paramname">sigma_r</td><td>Range between 0 to 1. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../de/dd9/samples_2cpp_2tutorial_code_2photo_2non_photorealistic_rendering_2npr_demo_8cpp-example.html#a9">samples/cpp/tutorial_code/photo/non_photorealistic_rendering/npr_demo.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="gafaee2977597029bc8e35da6e67bd31f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafaee2977597029bc8e35da6e67bd31f7">◆ </a></span>edgePreservingFilter()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::edgePreservingFilter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flags</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>sigma_s</em> = <code>60</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>sigma_r</em> = <code>0.4f</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.edgePreservingFilter(</td><td class="paramname">src[, dst[, flags[, sigma_s[, sigma_r]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../dc/d81/photo_8hpp.html">opencv2/photo.hpp</a>&gt;</code></p>
<p>Filtering is the fundamental operation in image and video processing. Edge-preserving smoothing filters are used in many different applications <a class="el" href="../../d0/de3/citelist.html#CITEREF_EM11">[86]</a> . </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Input 8-bit 3-channel image. </td></tr>
    <tr><td class="paramname">dst</td><td>Output 8-bit 3-channel image. </td></tr>
    <tr><td class="paramname">flags</td><td>Edge preserving filters: <a class="el" href="../../df/dac/group__photo__render.html#gga3f9a572bf02ebe19f6652ce7cadadc7ca54c35da37a520d619d8a149d9b463d73" title="Recursive Filtering. ">cv::RECURS_FILTER</a> or <a class="el" href="../../df/dac/group__photo__render.html#gga3f9a572bf02ebe19f6652ce7cadadc7caaab1c1e6dc436a25e1f5506fb6432d4e" title="Normalized Convolution Filtering. ">cv::NORMCONV_FILTER</a> </td></tr>
    <tr><td class="paramname">sigma_s</td><td>Range between 0 to 200. </td></tr>
    <tr><td class="paramname">sigma_r</td><td>Range between 0 to 1. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../de/dd9/samples_2cpp_2tutorial_code_2photo_2non_photorealistic_rendering_2npr_demo_8cpp-example.html#a7">samples/cpp/tutorial_code/photo/non_photorealistic_rendering/npr_demo.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="gae5930dd822c713b36f8529b21ddebd0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae5930dd822c713b36f8529b21ddebd0c">◆ </a></span>pencilSketch()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::pencilSketch </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>sigma_s</em> = <code>60</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>sigma_r</em> = <code>0.07f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>shade_factor</em> = <code>0.02f</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst1, dst2</td><td>=</td><td>cv.pencilSketch(</td><td class="paramname">src[, dst1[, dst2[, sigma_s[, sigma_r[, shade_factor]]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../dc/d81/photo_8hpp.html">opencv2/photo.hpp</a>&gt;</code></p>
<p>Pencil-like non-photorealistic line drawing. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Input 8-bit 3-channel image. </td></tr>
    <tr><td class="paramname">dst1</td><td>Output 8-bit 1-channel image. </td></tr>
    <tr><td class="paramname">dst2</td><td>Output image with the same size and type as src. </td></tr>
    <tr><td class="paramname">sigma_s</td><td>Range between 0 to 200. </td></tr>
    <tr><td class="paramname">sigma_r</td><td>Range between 0 to 1. </td></tr>
    <tr><td class="paramname">shade_factor</td><td>Range between 0 to 0.1. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../de/dd9/samples_2cpp_2tutorial_code_2photo_2non_photorealistic_rendering_2npr_demo_8cpp-example.html#a10">samples/cpp/tutorial_code/photo/non_photorealistic_rendering/npr_demo.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="gacb0f7324017df153d7b5d095aed53206"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacb0f7324017df153d7b5d095aed53206">◆ </a></span>stylization()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::stylization </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>sigma_s</em> = <code>60</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>sigma_r</em> = <code>0.45f</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.stylization(</td><td class="paramname">src[, dst[, sigma_s[, sigma_r]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../dc/d81/photo_8hpp.html">opencv2/photo.hpp</a>&gt;</code></p>
<p>Stylization aims to produce digital imagery with a wide variety of effects not focused on photorealism. Edge-aware filters are ideal for stylization, as they can abstract regions of low contrast while preserving, or enhancing, high-contrast features. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Input 8-bit 3-channel image. </td></tr>
    <tr><td class="paramname">dst</td><td>Output image with the same size and type as src. </td></tr>
    <tr><td class="paramname">sigma_s</td><td>Range between 0 to 200. </td></tr>
    <tr><td class="paramname">sigma_r</td><td>Range between 0 to 1. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../de/dd9/samples_2cpp_2tutorial_code_2photo_2non_photorealistic_rendering_2npr_demo_8cpp-example.html#a11">samples/cpp/tutorial_code/photo/non_photorealistic_rendering/npr_demo.cpp</a>.</dd>
</dl>
</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:41 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
